﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:CustomControls="clr-namespace:FU.Capstones.IMS.Web.Common.CustomControls;assembly=FU.Capstones.IMS.Web.Common">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="CommonSetterValues.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <!--PasswordBoxNormalStyle-->
    <Style x:Key="PasswordBoxNormalStyle" TargetType="PasswordBox">
        <Setter Property="FontSize" Value="{StaticResource FontSizeNormal}"/>
        <Setter Property="FontFamily" Value="{StaticResource FontFamilyNormal}" />
        <Setter Property="Height" Value="{StaticResource HeightNormal}"/>
        <Setter Property="Width" Value="{StaticResource WidthNormal}"/>
        <Setter Property="Margin" Value="{StaticResource MarginLarge}"/>
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
    </Style>

    <!--TextBoxNormalStyle-->
    <Style x:Key="TextBoxNormalStyle" TargetType="TextBox">
        <Setter Property="FontSize" Value="{StaticResource FontSizeNormal}"/>
        <Setter Property="FontFamily" Value="{StaticResource FontFamilyNormal}" />
        <Setter Property="Height" Value="{StaticResource HeightNormal}"/>
        <Setter Property="Width" Value="{StaticResource WidthNormal}"/>
        <Setter Property="Margin" Value="{StaticResource MarginLarge}"/>
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
    </Style>

    <!--TextBoxReadOnlyStyle-->
    <Style x:Key="TextBoxReadOnlyStyle" TargetType="TextBox" BasedOn="{StaticResource TextBoxNormalStyle}">
        <Setter Property="IsEnabled" Value="False" />
    </Style>
    
    <!--TextBoxNumericStyle-->
    <Style x:Key="TextBoxNumericStyle" TargetType="CustomControls:NumericTextBox" BasedOn="{StaticResource TextBoxNormalStyle}">
        <Setter Property="Width" Value="100" />
        <Setter Property="AllowDecimal" Value="False" />
    </Style>

    <!--TextBoxMultilineStyle-->
    <Style x:Key="TextBoxMultilineStyle" TargetType="TextBox" BasedOn="{StaticResource TextBoxNormalStyle}">
        <Setter Property="Height" Value="{StaticResource TBMultilineHeight}" />
        <Setter Property="AcceptsReturn" Value="True" />
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="VerticalContentAlignment" Value="Top" />
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
    </Style>

    <!--TextBoxMultilineReadOnlyStyle-->
    <Style x:Key="TextBoxMultilineReadOnlyStyle" TargetType="TextBox" BasedOn="{StaticResource TextBoxMultilineStyle}">
        <Setter Property="IsEnabled" Value="False" />
    </Style>

    <!--TRichTextBoxStyle-->
    <Style x:Key="TRichTextBoxStyle" TargetType="RichTextBox">
        <Setter Property="FontSize" Value="{StaticResource FontSizeNormal}"/>
        <Setter Property="FontFamily" Value="{StaticResource FontFamilyNormal}" />
        <Setter Property="Margin" Value="{StaticResource MarginNormal}"/>
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Top" />
        <Setter Property="Width" Value="520"/>
        <Setter Property="Height" Value="250" />
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
    </Style>

</ResourceDictionary>
